<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>add</title>
	<hdjs/>
</head>
<body>
<div class="wrap">
	<div class="menu_list">
		<ul>
		    <li><a href="{|U:'index'}"  class="action">答案列表</a></li>
		    <li><a href="{|U:'add'}">发布答案</a></li>
		</ul>
	</div>
<form method="post">
	<table class="table1 hd-form">

		<tr>
			<td class="w100">问题分类</td>
			<td>
				<select name="qid" class="w250" style="text-align:center;">
					<option value="0">==选择问题==</option>
					<list from='$data' name='$d'>
					<option value="{$d.qid}">{$d.qname}</option>
					</list>
				</select>
			</td>
		</tr>
		<tr>
			<td>答案</td>
			<td>
				<ueditor width='800' height='100' name='answer'/>
			</td>
		</tr>
		<tr>
			<td>缩略图</td>
			<td>
			<upload size='2' type='jpg,jpeg,png,gif' limit='2' name='athumb'  water="0"/>
			</td>
		</tr>
		<tr>
			<td>发布时间</td>
			<td><input type="text" readonly="readonly" id="atime" name="atime"
 value="{|date:'Y/m/d H:i:s'}"
class="w150"/></td>
			<script>
	$('#atime').calendar({format: 'yyyy/MM/dd HH:mm:ss'});
 </script>
		</tr>
		<tr>
			<td>浏览次数</td>
			<td><input type="text" name="aclick"></td>
		</tr>
	</table>
	<input type="submit" value="发布" class="hd-success">
	<js file="__CONTROLLER_VIEW__/Js/js.js"/>
</form>
</div>
</body>
</html>